package com.继承.练习;
//在下面写的类中使用继承关系
//答案写在Extends_1.java中
class People{
    String name;
    static int age = 12;
    String sex;

    void action(){
        System.out.println(this.name+"需要吃饭");
    }
}
class Boy{
    String name;
    static int age = 12;
    String sex;

    void action(){
        System.out.println(this.name+"需要吃饭");
    }
    void boyFun1(){
        System.out.println(this.name+"喜欢打游戏");
    }
}
class Girl{
    String name;
    static int age = 12;
    String sex;

    void action(){
        System.out.println(this.name+"需要吃饭");
    }
    void girlFun1(){
        System.out.println(this.name+"喜欢画画");
    }
}
